package com.chaos.auth.api.feign;

import com.chaos.auth.api.constant.ServerNameConstant;
import com.chaos.framework.model.constant.FeignConstants;
import com.chaos.framework.model.dto.result.data.DataResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = ServerNameConstant.AUTH_SERVICE)
public interface Oauth2Feign {

    @PostMapping(FeignConstants.FEIGN_PREFIX + "oauth2/rbacUser/passwordEncoder")
    DataResult<String> passwordEncoder(@RequestBody String password);

}
